/**
 * @file srv_sensor.h
 * @author your name (you@domain.com)
 * @brief 传感器
 * @version 0.1
 * @date 2022-07-27
 *
 * @copyright Copyright (c) 2022
 *
 */

#ifndef __SRV_SENSOR_H__
#define __SRV_SENSOR_H__

#include <stdint.h>

#define A_POWER_0       5
#define A_POWER_1       10
#define A_POWER_2       15

#define B_POWER_0       5
#define B_POWER_1       12
#define B_POWER_2       25

#define C_POWER_0       5
#define C_POWER_1       12
#define C_POWER_2       25



/**
 * @brief 获取当前方向误差
 *
 * @return double
 */
double ist_sensor_get_direction_error(void);

void ist_power_down(uint8_t level);
void ist_power_up(void);

void ist_fix_power_table(uint8_t expect_pow_num);  //0,1,2权重表

// int ist_sensor_is_stop_sign(void);


#endif /* __SRV_SENSOR_H__ */
